/*
 * Kitchen.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.domain;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.OrderColumn;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 厨房
 *
 * @author kiri
 * @date 2015年3月5日
 * @version 1.0
 */
@Entity(name = "t_kitchen")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class Kitchen implements Serializable {

	private static final long serialVersionUID = -5506425772295642002L;

	@Id
	@GeneratedValue
	private Long kitchenId;

	private Long cookId;

	private String sn;

	private String logo;

	private String name;

	private String city;

	private String address;

	private String introduction;

	private String photos;

	private Integer averageSpend;

	private String notes;
	
	@ManyToMany
	@OrderColumn(name = "sort")
	private List<Dishes> dishes;
	
	@Transient
	private User cook;
	
	public Long getKitchenId() {
		return kitchenId;
	}

	public void setKitchenId(Long kitchenId) {
		this.kitchenId = kitchenId;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public String getPhotos() {
		return photos;
	}

	public void setPhotos(String photos) {
		this.photos = photos;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public User getCook() {
		return cook;
	}

	public void setCook(User cook) {
		this.cook = cook;
	}

	public String getSn() {
		return sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	public List<Dishes> getDishes() {
		return dishes;
	}

	public void setDishes(List<Dishes> dishes) {
		this.dishes = dishes;
	}

	public Long getCookId() {
		return cookId;
	}

	public void setCookId(Long cookId) {
		this.cookId = cookId;
	}

	public Integer getAverageSpend() {
		return averageSpend;
	}

	public void setAverageSpend(Integer averageSpend) {
		this.averageSpend = averageSpend;
	}
}
